package _22作业._递归;

public class T1 {
    public static void main(String[] args) {
        System.out.println("getSum(5) = " + getSum(5));

    }
    public static int getSum(int n){
        if (n ==1 ){
            return n;
        }else {
            return n*getSum(n-1);
        }

    }
}
